package com.elysia.visionmanagerspringboot.controller;

import com.elysia.visionmanagerspringboot.domain.dto.ResetPasswordDTO;
import com.elysia.visionmanagerspringboot.domain.dto.UserDTO;
import com.elysia.visionmanagerspringboot.result.Result;
import com.elysia.visionmanagerspringboot.service.impl.IUserServiceImpl;
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
@RequiredArgsConstructor
@Slf4j
public class UserController {
    private final IUserServiceImpl userService;
    @PostMapping("/reset")
    public Result<Object> reset(@RequestBody ResetPasswordDTO resetPasswordDTO){
        log.info("用户重置密码{}", resetPasswordDTO);
        return userService.reset(resetPasswordDTO);
    }
}
